package com.skyworth.ui.api;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.Window;

import com.skyworth.commen.ui.R;

/**
 * Created by lu on 2018/1/19.
 */

public class SkyDialog extends Dialog {

    public SkyDialog(@NonNull Context context) {
        super(context, R.style.dialog_translucent_notitlebar_fullscreen);
        init();
    }

    public SkyDialog(@NonNull Context context, int themeResId) {
        super(context, R.style.dialog_translucent_notitlebar_fullscreen);
        init();
    }

    public SkyDialog(Context context, int themeResId, boolean needSelfTheme) {
        super(context, themeResId);
        init();
    }

    private void init() {
        Window window = getWindow();
        window.setWindowAnimations(R.style.dialog_animation);
    }
}
